package com.nageoffer.shortlink.project.service;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.nageoffer.shortlink.project.dao.entity.ShortLinkDO;
import com.nageoffer.shortlink.project.dto.req.RecycleBinRecoverReqDTO;
import com.nageoffer.shortlink.project.dto.req.RecycleBinRemoveReqDTO;
import com.nageoffer.shortlink.project.dto.req.RecycleBinSaveReqDTO;
import com.nageoffer.shortlink.project.dto.req.ShortLinkRecycleBinPageReqDTO;
import com.nageoffer.shortlink.project.dto.resp.ShortLinkPageRespDTO;

/**
 * 回收站管理接口层
 *
 * @author Albert
 * @since 2025-10-05 11:27:08
 */
public interface RecycleBinService extends IService<ShortLinkDO> {

    /**
     * 添加到回收站
     */
    void saveRecycleBin(RecycleBinSaveReqDTO requestParams);

    /**
     * 分页查询回收站短链接
     */
    IPage<ShortLinkPageRespDTO> pageShortLink(ShortLinkRecycleBinPageReqDTO requestParams);

    /**
     * 回收站恢复短链接
     */
    void recoverShortLink(RecycleBinRecoverReqDTO requestParams);

    /**
     * 回收站移除短链接
     */
    void removeShortLink(RecycleBinRemoveReqDTO requestParams);
}
